import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import home from '@/components/tabbar/home'
import member from '@/components/tabbar/member'
import search from '@/components/tabbar/search'
import shoppingcart from '@/components/tabbar/shoppingcart'
import newsList from '@/components/news/newsList'
import newsinfo from '@/components/news/newsinfo'
Vue.use(Router)

export default new Router({
  linkActiveClass:'mui-active',
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/member',
      name: 'member',
      component: member
    },
    {
      path: '/search',
      name: 'search',
      component: search
    },
    {
      path: '/shoppingcart',
      name: 'shoppingcart',
      component: shoppingcart
    },
    {
      path: '/news/newsList',
      name: 'newsList',
      component: newsList
    },
    {
      path: '/newsInfo/:id',
      name: 'newsinfo',
      component: newsinfo
    }

  ]
})
